<?php
namespace Home\Controller;
use Think\Controller;

use Think\Vendor;
Vendor('Xinge.XingeApp');

header('Content-type: text/json; charset=utf-8');

class  WelcomeController extends Controller {

	public function index(){
		echo "welcome";
	}


	public function edit(){
		$welcome['message'] = I('message');

		$db_welcome = M('welcome');
		$db_welcome->where("id=1")->save($welcome);

		echo json_encode(array('success'=>1));
	}


}